package scheduler.gui;

import scheduler.devices.CPU;
import scheduler.devices.IORequest;
import scheduler.devices.SharedMemory;
import scheduler.devices.SystemTimer;
import scheduler.services.Scheduler;

public class SimulatorEngine {
	
	private SystemTimer systemTimer;
	private Scheduler scheduler;
	private CPU cpu;
	private IORequest ioRequest;
	private SharedMemory sharedMem;
	private int timeToRun;
	
	public SimulatorEngine(int numProcesses, int[] processOrder, int timeToRun) {
		
		this.timeToRun = timeToRun;
		
		// simulation init
		sharedMem = SharedMemory.instance();
		systemTimer = new SystemTimer();
		cpu = new CPU();
		scheduler = new Scheduler();
		ioRequest = new IORequest();
		
		runSimulation();
	}
	
	private void runSimulation() {
		// TODO
	}

}
